﻿@model SystemReg
@{
    string bgColor = "#fff0ef";
    bool checkStutes = Model.CheckStatus;
    if (!checkStutes)
    {
        bgColor = "#f0fdf1";
    }
    var regTypeText = "";
    if (Model.RegType == 0) { regTypeText = "系统登记"; }
    if (Model.RegType == 1) { regTypeText = "自动登记"; }
    if (Model.RegType == 2) { regTypeText = "人工登记"; }
}
<form class="form-horizontal uiform" method="post"
      style="background:@bgColor "
      data-modal="true"
      data-table=".uitable"
      data-error-el=".alert-danger"
      data-on-submit-success="fx.mtfSuccess"
      action="@Url.Action("Save")">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">稽查系统登记信息管理 - <span style="color:red">@Model.CarNumber</span></h4>
    </div>
    <div class="modal-body">
        <div class="form-body">
            <table class="table table-bordered table-striped table-details">
                <tr>
                    <th class="w100px">车牌号</th>
                    <td>
                        @Model.CarNumber
                    </td>
                    <th>客运站</th>
                    <td>
                        @Model.Station
                    </td>
                </tr>
                <tr>
                    <th>出站时间</th>
                    <td>@DateTimeHelper.FormatDateHasSecond(Model.ExitTime)</td>
                    <th>运行时间</th>
                    <td>
                        @Model.RunSecond 分钟
                    </td>
                </tr>
                <tr>
                    <th>乘客人数</th>
                    <td>@Model.PassengerNumber 人</td>
                    @*<th>售票数</th>
                            <td>@Model.PassengerNumber 张</td>
                        </tr>
                        <tr>
                            <th>载客人数</th>
                            <td>
                                @Model.SeatCount 人
                            </td>*@
                    <th>线路</th>
                    <td>
                        @Model.Line
                    </td>
                </tr>
                <tr>
                    <th>司机姓名</th>
                    <td>@Model.DriverName</td>
                    <th>司机电话</th>
                    <td>@Model.DriverPhone</td>
                </tr>
                <tr>
                    <th>运输企业</th>
                    <td>
                        @Model.Corp
                    </td>
                    <th>运行状态</th>
                    <td>@Html.BoolLabel(Model.RunStatus, Model.RunStatusText, Model.RunStatusText)</td>
                </tr>
                <tr>
                    <th>稽查点</th>
                    <td>@Model.PointName</td>
                    <th>登记时间</th>
                    <td>@DateTimeHelper.FormatDateHasSecond(Model.CreateTime) </ td >
                </tr>
                <tr>
                    <th> 登记类型 </th>
                    <td> @regTypeText </td>@*@Html.BoolLabel(!Model.RegType, Model.RegTypeText, Model.RegTypeText)*@
                    <th>操作人</th>
                    <td>@Model.CreateName</td>
                </tr>
                <tr>
                    <th>稽查状态</th>
                    <td>@Html.BoolLabel(!Model.CheckStatus, Model.CheckStatusText, Model.CheckStatusText)</td>
                    <th>违规类型</th>
                    <td>@Model.OffenceName</td>
                </tr>
                <tr>
                    <th>有效</th>
                    <td>@Html.BoolLabel(Model.Enabled, Model.EnabledText, Model.EnabledText)</td>
                    <th></th>
                    <td></td>
                </tr>
                <tr>
                    <th>备注</th>
                    <td colspan="3">@Model.Note</td>
                </tr>
            </table>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">
            <i class="fa fa-sign-in"></i> 关闭
        </button>
    </div>
</form>
